home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Corel Gallery (Macintosh)
/
Corel Gallery - Macintosh Version.bin
/
Corel GALLERY
/
Corel GALLERY.rsrc
/
CODE_46_MAMiniInit.txt
< prev
next >
Wrap
Text File
|
1994-04-29
|
52KB
|
930 lines
# near model CODE resource
# jump table entries: 20432-20434 (3 of them)
export_2554:
00000000 4E56 0000 link A6, 0
00000004 2F0C move.l -[A7], A4
00000006 70FF moveq.l D0, 0xFFFFFFFF
00000008 A055 syscall StripAddress
0000000A 2B40 F84C move.l [A5 - 0x7B4], D0
0000000E 486D F864 pea.l [A5 - 0x79C]
00000012 4EBA 01C0 jsr [PC + 0x1C0 /* 000001D4 */]
00000016 4A2D F88A tst.b [A5 - 0x776]
0000001A 664A bne +0x4C /* 00000066 */
0000001C 486D FCD6 pea.l [A5 - 0x32A]
00000020 A86E syscall InitGraf
00000022 A8FE syscall InitFonts
00000024 A912 syscall InitWindows
00000026 3F3C 7F7F move.w -[A7], 0x7F7F
0000002A 7000 moveq.l D0, 0x00
0000002C 3F00 move.w -[A7], D0
0000002E 201F move.l D0, [A7]+
00000030 A032 syscall FlushEvents
00000032 70FF moveq.l D0, 0xFFFFFFFF
00000034 31C0 0144 move.w [0x00000144 /* SysEvtMask */], D0
00000038 A930 syscall InitMenus
0000003A A9CC syscall TEInit
0000003C 7000 moveq.l D0, 0x00
0000003E 2F00 move.l -[A7], D0
00000040 A97B syscall InitDialogs
00000042 598F subq.l A7, 4
00000044 7004 moveq.l D0, 0x04
00000046 3F00 move.w -[A7], D0
00000048 A9B9 syscall GetCursor
0000004A 285F movea.l A4, [A7]+
0000004C A850 syscall InitCursor
0000004E 200C move.l D0, A4
00000050 6704 beq +0x6 /* 00000056 */
00000052 2F14 move.l -[A7], [A4]
00000054 A851 syscall SetCursor
label00000056:
00000056 558F subq.l A7, 2
00000058 A994 syscall CurResFile
0000005A 3B5F F88C move.w [A5 - 0x774], [A7]+
0000005E 1B7C 0001 F860 move.b [A5 - 0x7A0], 0x1
00000064 6002 bra +0x4 /* 00000068 */
label00000066:
00000066 A9F4 syscall ExitToShell
label00000068:
00000068 286E FFFC movea.l A4, [A6 - 0x4]
0000006C 4E5E unlink A6
0000006E 4E75 rts
export_2555:
00000070 4E56 0000 link A6, 0
00000074 48E7 1108 movem.l -[A7], D3,D7,A4
00000078 286E 0008 movea.l A4, [A6 + 0x8]
0000007C 7E01 moveq.l D7, 0x01
0000007E 7600 moveq.l D3, 0x00
00000080 4A07 tst.b D7
00000082 6708 beq +0xA /* 0000008C */
00000084 4A2C 0012 tst.b [A4 + 0x12]
00000088 6702 beq +0x4 /* 0000008C */
0000008A 7601 moveq.l D3, 0x01
label0000008C:
0000008C 1E03 move.b D7, D3
0000008E 7600 moveq.l D3, 0x00
00000090 4A07 tst.b D7
00000092 6708 beq +0xA /* 0000009C */
00000094 4A2C 0015 tst.b [A4 + 0x15]
00000098 6702 beq +0x4 /* 0000009C */
0000009A 7601 moveq.l D3, 0x01
label0000009C:
0000009C 1E03 move.b D7, D3
0000009E 7600 moveq.l D3, 0x00
000000A0 4A07 tst.b D7
000000A2 6708 beq +0xA /* 000000AC */
000000A4 4A2C 0014 tst.b [A4 + 0x14]
000000A8 6702 beq +0x4 /* 000000AC */
000000AA 7601 moveq.l D3, 0x01
label000000AC:
000000AC 1E03 move.b D7, D3
000000AE 7600 moveq.l D3, 0x00
000000B0 4A07 tst.b D7
000000B2 6708 beq +0xA /* 000000BC */
000000B4 4A2C 0016 tst.b [A4 + 0x16]
000000B8 6702 beq +0x4 /* 000000BC */
000000BA 7601 moveq.l D3, 0x01
label000000BC:
000000BC 1E03 move.b D7, D3
000000BE 7600 moveq.l D3, 0x00
000000C0 4A07 tst.b D7
000000C2 6708 beq +0xA /* 000000CC */
000000C4 4A2C 0018 tst.b [A4 + 0x18]
000000C8 6702 beq +0x4 /* 000000CC */
000000CA 7601 moveq.l D3, 0x01
label000000CC:
000000CC 1E03 move.b D7, D3
000000CE 7600 moveq.l D3, 0x00
000000D0 4A07 tst.b D7
000000D2 670A beq +0xC /* 000000DE */
000000D4 0C6C 0605 0004 cmpi.w [A4 + 0x4], 0x605
000000DA 6D02 blt +0x4 /* 000000DE */
000000DC 7601 moveq.l D3, 0x01
label000000DE:
000000DE 1E03 move.b D7, D3
000000E0 7600 moveq.l D3, 0x00
000000E2 4A07 tst.b D7
000000E4 6708 beq +0xA /* 000000EE */
000000E6 4A2C 0009 tst.b [A4 + 0x9]
000000EA 6702 beq +0x4 /* 000000EE */
000000EC 7601 moveq.l D3, 0x01
label000000EE:
000000EE 1E03 move.b D7, D3
000000F0 7600 moveq.l D3, 0x00
000000F2 4A07 tst.b D7
000000F4 6712 beq +0x14 /* 00000108 */
000000F6 7001 moveq.l D0, 0x01
000000F8 B06C 0006 cmp.w D0, [A4 + 0x6]
000000FC 670A beq +0xC /* 00000108 */
000000FE 7002 moveq.l D0, 0x02
00000100 B06C 0006 cmp.w D0, [A4 + 0x6]
00000104 6702 beq +0x4 /* 00000108 */
00000106 7601 moveq.l D3, 0x01
label00000108:
00000108 1E03 move.b D7, D3
0000010A 7600 moveq.l D3, 0x00
0000010C 4A07 tst.b D7
0000010E 670A beq +0xC /* 0000011A */
00000110 0C6C 0700 0004 cmpi.w [A4 + 0x4], 0x700
00000116 6D02 blt +0x4 /* 0000011A */
00000118 7601 moveq.l D3, 0x01
label0000011A:
0000011A 1E03 move.b D7, D3
0000011C 7600 moveq.l D3, 0x00
0000011E 4A07 tst.b D7
00000120 6708 beq +0xA /* 0000012A */
00000122 4A2C 001E tst.b [A4 + 0x1E]
00000126 6702 beq +0x4 /* 0000012A */
00000128 7601 moveq.l D3, 0x01
label0000012A:
0000012A 1E03 move.b D7, D3
0000012C 7600 moveq.l D3, 0x00
0000012E 4A07 tst.b D7
00000130 6708 beq +0xA /* 0000013A */
00000132 4A2C 001F tst.b [A4 + 0x1F]
00000136 6702 beq +0x4 /* 0000013A */
00000138 7601 moveq.l D3, 0x01
label0000013A:
0000013A 1E03 move.b D7, D3
0000013C 7600 moveq.l D3, 0x00
0000013E 4A07 tst.b D7
00000140 6708 beq +0xA /* 0000014A */
00000142 4A2C 0020 tst.b [A4 + 0x20]
00000146 6702 beq +0x4 /* 0000014A */
00000148 7601 moveq.l D3, 0x01
label0000014A:
0000014A 1E03 move.b D7, D3
000